package com.hx.service;

import com.hx.entity.User;
import com.hx.rpc.RpcService;

/**
 * @author Huathy
 * @date 2021-10-17 17:24
 * @description
 */
@RpcService(value = IHelloService.class,version = "v2.0")
public class HelloServiceImpl2 implements IHelloService{

    @Override
    public String sayHello(String content) {
        System.out.println("【v2.0】request in " + content);
        return "【v2.0】say hi hi : " + content;
    }

    /**
     * 保存用户
     *
     * @return
     */
    @Override
    public String saveUser(User user) {
        System.out.println("【v2.0】request in seveUser : " + user.toString());
        return "【v2.0】Save SUCCESS";
    }
}
